<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>点赞0</button>
</body>
<script>
    var button = document.getElementsByTagName('button')[0]
    button.onclick = function(){
        var count = 0
        return function(){
            console.log(this);
            count++
            console.log(count);
            this.innerHTML = `点赞${count}`
        }
    }()
</script>
<script>
    // btn
</script>
</html>